<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width,initial-scale=1, shrink-to-fit=no">
    <title>博客</title>
    <!--bootstrap css文件-->
    <link rel="stylesheet" href="bootstrap-4.2.1-dist/css/bootstrap.css">
    <!--jquery js文件-->
    <script src="js/jquery.min.js"></script>
    <!--bootstrap js文件-->
    <script src="bootstrap-4.2.1-dist/js/bootstrap.bundle.js"></script>
    <script src="bootstrap-4.2.1-dist/js/bootstrap.min.js"></script>
    <!--自定义css文件-->
    <link rel="stylesheet" href="css/style.css">
    <!--字体图标文件-->
    <link rel="stylesheet" href="font-awesome-4.7.0/css/font-awesome.css">
    <!--灯箱插件-->
    <link rel="stylesheet" href="swipebox-master/src/css/swipebox.css">
    <script src="swipebox-master/lib/jquery-2.1.0.min.js"></script>
    <script src="swipebox-master/src/js/jquery.swipebox.js"></script>
</head>
<body>
<div class="container">
    <nav class="navbar navbar-expand-lg navbar-light bg-light">
        <a class="navbar-brand" href="#"><img src="images/logo.jpg" width="45"></a>
        <button class="navbar-toggler" data-toggle="collapse" data-target="#navbarContent">
            <span class="navbar-toggler-icon"></span>
        </button>

        <div class="collapse navbar-collapse" id="navbarContent">
            <ul class="navbar-nav mr-auto">
                <li class="nav-item active"><a class="nav-link" href="index.html">首页</a></li>
                <li class="nav-item"><a class="nav-link" href="class.html">分类</a></li>
                <li class="nav-item"><a class="nav-link" href="blog.html">博客</a></li>
                <li class="nav-item"><a class="nav-link" href="contact.html">联系</a></li>
            </ul>

            <form class="form-inline my-2 my-lg-0">
                <input class="form-control mr-sm-2" type="search" placeholder="搜索">
                <button type="submit" class="btn btn-outline-success my-2 my-sm-0">搜索</button>
            </form>

        </div>

    </nav>
    <div class="menu bg-white">
        <ul class="nav nav-pills my-4 p-2" id="myTab">
            <li><a class="ab" href="#pills-home" data-toggle="pill">2030年</a></li>
            <li><a href="#pills-profile" data-toggle="pill">2029年</a></li>
            <li><a href="#pills-contact" data-toggle="pill">2028年</a></li>
            <li><a href="javascript:void(0);" data-toggle="pill">更多</a></li>
        </ul>
    </div>

    <div class="tab-content">
        <div class="tab-pane fade show active" id="pills-home">
            <div class="row list">
                <div class="col-4">
                    <a href="images/002.jpg" class="swipebox" title="2030年">
                        <img src="images/002.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/003.jpg" class="swipebox" title="2030年">
                        <img src="images/003.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/004.jpg" class="swipebox" title="2030年">
                        <img src="images/004.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/005.jpg" class="swipebox" title="2030年">
                        <img src="images/005.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/006.jpg" class="swipebox" title="2030年">
                        <img src="images/006.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/012.jpg" class="swipebox" title="2030年">
                        <img src="images/012.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
            </div>
        </div>

        <div class="tab-pane fade" id="pills-profile">
            <div class="row list">
                <div class="col-4">
                    <a href="images/007.jpg" class="swipebox" title="2029年">
                        <img src="images/007.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/008.jpg" class="swipebox" title="2029年">
                        <img src="images/008.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/009.jpg" class="swipebox" title="2029年">
                        <img src="images/009.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/014.jpg" class="swipebox" title="2029年">
                        <img src="images/014.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/011.jpg" class="swipebox" title="2029年">
                        <img src="images/011.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
            </div>
        </div>

        <div class="tab-pane fade" id="pills-contact">
            <div class="row list">
                <div class="col-4">
                    <a href="images/012.jpg" class="swipebox" title="2028年">
                        <img src="images/012.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/015.jpg" class="swipebox" title="2028年">
                        <img src="images/015.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/010.jpg" class="swipebox" title="2028年">
                        <img src="images/010.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/013.jpg" class="swipebox" title="2028年">
                        <img src="images/013.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
                <div class="col-4">
                    <a href="images/001.jpg" class="swipebox" title="2028年">
                        <img src="images/001.jpg" alt="image" class="img-fluid">
                    </a>
                </div>
            </div>
        </div>

    </div>

</div>
</body>
<script>
    jQuery(function ($){
        $(".swipebox").swipebox({
            useCSS: true,
            useSVG: true,
            initialIndexOnArray: 0,
            hideCloseButtonOnMobile: false,
            removeBarsOnMobile: true,
            hideBarsDelay: 3000,
            loopAtEnd: false
        })
    })
</script>
<script>
    $(function (){
        $("#myTab li").click(function (){
            $(this).find('a').addClass('ab')
            $(this).siblings().find("a").removeClass('ab')
        })
    })
</script>
</html>